import { Component, OnInit } from '@angular/core';
import { product, productdataService } from '../shared/productdata.service';

@Component({
  selector: 'app-product',
  templateUrl: './product.component.html',
  styleUrls: ['./product.component.css']
})
export class ProductComponent implements OnInit {

  product:product;
  constructor(public productDataService:productdataService) { }

  ngOnInit() {
    this.product = this.productDataService.getProduct();
  }

}
